//
//  SEDefine.h
//  BaoJunNewEnergy
//
//  Created by 9s on 2018/3/22.
//  Copyright © 2018年 SGMW. All rights reserved.
//

#ifndef SEDefine_h
#define SEDefine_h
#import <UIKit/UIKit.h>




#define SEIntegerToString(integer)      [NSString stringWithFormat:@"%ld",(long)integer]
//字符串是否为空
#define SEStringIsEmpty(str) ([str isKindOfClass:[NSNull class]] || str == nil || [str length] < 1 ? YES : NO )
//数组是否为空
#define SEArrayIsEmpty(array) ([array isKindOfClass:[NSNull class]])

//字典是否为空
#define SEDictIsEmpty(dic) ([dic isKindOfClass:[NSNull class]])


//iPhoneX 底部留白
#define SEIPHONE_X_BOTTOM(BottomY,Color,View) if (SafeAreaHeight>0) {\
UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, BottomY, ScreenWidth, SafeAreaHeight)];\
view.backgroundColor = Color;\
[View addSubview:view];\
}
#define displayScale    (nativeScale() / 2)
CGFloat nativeScale(void);

#endif /* SEDefine_h */
